﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.Domain
{
    /// <summary>
    /// 入库明细表实体
    /// </summary>
    public class InboundItem
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 入库单号
        /// </summary>
        [Required]
        [StringLength(50)]
        public string OrderId { get; set; } = string.Empty;

        /// <summary>
        /// 商品SKU
        /// </summary>
        [Required]
        [StringLength(100)]
        public string Sku { get; set; } = string.Empty;

        /// <summary>
        /// 数量
        /// </summary>
        [Required]
        public int Quantity { get; set; } = 1;

        /// <summary>
        /// 箱号
        /// </summary>
        [StringLength(50)]
        public string? BoxNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(255)]
        public string? Remark { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [Column(TypeName = "decimal(12,2)")]
        public decimal? UnitPrice { get; set; }
    }
}
